package cn.snowheart.adapter.object;

/**
 * 适配器接口
 *
 * @author liuwanxiang
 * @version 2019/07/08
 */
public class SourceAdapter implements Targetable {

    private Source source;

    public SourceAdapter(Source source) {
        this.source = source;
    }

    @Override
    public void method1() {
        source.method1();
    }

    @Override
    public void method2() {
        System.out.println("this is adapter's method2...");
    }


}
